package cn.zebra.dev.config.pay.wechat;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author runnable@sina.cn
 */
@Configuration
@ConfigurationProperties(prefix = WeChatPayConfigureBean.PREFIX)
public class WeChatPayConfigureBean {
    /**
     * 是否为开发环境(沙箱环境)
     */
    private Boolean dev = false;
    /**
     * 默认前缀配置名
     */
    static final String PREFIX = "zebra.pay.wechat";
    /**
     * App ID
     */
    private String appId;
    /**
     * Mch ID
     */
    private String mchId;
    /**
     * API 密钥
     */
    private String key;

    private String paternerKey;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Boolean getDev() {
        return dev;
    }

    public void setDev(Boolean dev) {
        this.dev = dev;
    }

    public String getPaternerKey() {
        return paternerKey;
    }

    public void setPaternerKey(String paternerKey) {
        this.paternerKey = paternerKey;
    }
}
